<template>
  <div>
    <button @click="subB">提交到兄弟组件</button>
  </div>
</template>
<script setup>
import { ref, onMounted } from 'vue';
import bus from "../assets/bus.js"


const subB = () => {
  bus.emit('appchild4', { a: 'b' });
}
onMounted(() => {

})



// 向兄弟组件传参



</script>
<style lang="scss" scoped></style>